package com.dong.com.love.model;

import android.content.Context;

import com.dong.com.love.Bean.NewsPic;
import com.dong.com.love.Bean.ShowPic;
import com.dong.com.love.api.RetrofitHelper;

import java.util.ArrayList;
import java.util.List;

import retrofit2.Callback;

/**
 * Created by Dong on 2016/10/31.
 */

public class HeadModel {

    /*
      获取最新图片
     */
    public static void getNews(Context context,Callback<NewsPic> callback){
        RetrofitHelper.getInstance()
                .getService(context)
                .getNews()
                .enqueue(callback);
    }

    /*
      获取图片详情
     */
    public static void getShow(Context context,long id,Callback<ShowPic> callback){
        RetrofitHelper.getInstance()
                .getService(context)
                .getShow(id)
                .enqueue(callback);
    };
}
